package ziv.map.utils;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;

public class DbHelper extends SQLiteOpenHelper{
	private static final int VERSION=1;
	// 
	public DbHelper(Context context, String name, CursorFactory factory,
			int version) {
		super(context, name, factory, version);
		
	}
	public DbHelper(Context context,String name,int version){
		this(context,name,null,version);
	}
	public DbHelper(Context context,String name){
		this(context,name,VERSION);
	}
	@Override
	public void onCreate(SQLiteDatabase sqlitedatabase) {
		// create table
		System.out.println("dbhelper on create");
		sqlitedatabase.execSQL("create table tb_observe(_id int,MOBILESELF    int,MOBILEOBSERVE int,RELATION      VARCHAR(50))");
	}

	@Override
	public void onUpgrade(SQLiteDatabase arg0, int arg1, int arg2) {
		// TODO Auto-generated method stub
		//System.out.println("upgrade database ");
		
	}
 
}
